package com.arpa.ntocc.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 发票信息（抬头）维护
 * </p>
 *
 * @author LEO
 * @since 2019-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_invoice_message")
@ApiModel(value="InvoiceMessage对象", description="发票信息（抬头）维护")
public class InvoiceMessage extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "UUID")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "用户编码")
    @TableField("user_code")
    private String userCode;

    @ApiModelProperty(value = "机构编码")
    @TableField("branch_code")
    private String branchCode;

    @ApiModelProperty(value = "发票抬头")
    @TableField("invoice_title")
    private String invoiceTitle;

    @ApiModelProperty(value = "收件人")
    @TableField("receiver")
    private String receiver;

    @ApiModelProperty(value = "收取地址")
    @TableField("receiver_address")
    private String receiverAddress;

    @ApiModelProperty(value = "邮编")
    @TableField("receiver_postcode")
    private String receiverPostcode;

    @ApiModelProperty(value = "收件人联系电话")
    @TableField("receiver_phone")
    private String receiverPhone;

    @ApiModelProperty(value = "开具类型，0个人/1企业")
    @TableField("issue_type")
    private Integer issueType;

    @ApiModelProperty(value = "税务登记证号")
    @TableField("tax_registration_number")
    private String taxRegistrationNumber;

    @ApiModelProperty(value = "基本开户银行(数据字典)")
    @TableField("bank")
    private String bank;

    @ApiModelProperty(value = "基本开户账号")
    @TableField("account_number")
    private String accountNumber;

    @ApiModelProperty(value = "注册场所地址")
    @TableField("registered_address")
    private String registeredAddress;

    @ApiModelProperty(value = "注册固定电话")
    @TableField("registered_fixed_phone")
    private String registeredFixedPhone;

    @ApiModelProperty(value = "是否是开票信息：0-不是，1-是")
    @TableField("is_invoice_default")
    private Integer isInvoiceDefault;

    @ApiModelProperty(value = "开票方式：0-现付开票，1-到付开票，2-代付开票")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "实际收票人编码")
    @TableField("receiver_user_code")
    private String receiverUserCode;


}
